<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ include file="/WEB-INF/layout/header.jsp"%>

<h1>
	<fmt:message key="contract.view" />
</h1>
<c:if test="${not empty contractDTO}">
<div class="span-24">
	<form:form modelAttribute="contractDTO" action="${contract.id}"
		method="post">
		<fieldset>
			<legend>
				<fmt:message key="contract.details" />
			</legend>
			<p>
				<form:label for="id" path="id">ID</form:label>
				<br />
				<form:input path="id" readonly="true" />
			</p>
			<p>
				<form:label for="newSupplierId" path="newSupplierId"><fmt:message key="contract.newSupplierId" /></form:label>
				<br />
				<form:input path="newSupplierId" readonly="true" />
			</p>
			<p>
				<form:label for="oldSupplierId" path="oldSupplierId"><fmt:message key="contract.oldSupplierId" /></form:label>
				<br />
				<form:input path="oldSupplierId" readonly="true" />
			</p>
			<p>
				<form:label for="networkOwnerId" path="networkOwnerId"><fmt:message key="contract.networkOwnerId" /></form:label>
				<br />
				<form:input path="networkOwnerId" readonly="true" />
			</p>
			<p>
				<form:label for="clientContractNumber" path="clientContractNumber"><fmt:message key="contract.clientContractNumber" /></form:label>
				<br />
				<form:input path="clientContractNumber" readonly="true" />
			</p>
			<p>
				<form:label for="facilityId" path="facilityId"><fmt:message key="contract.facilityId" /></form:label>
				<br />
				<form:input path="facilityId" readonly="true" />
			</p>
			<p>
				<form:label for="areaId" path="areaId"><fmt:message key="contract.areaId" /></form:label>
				<br />
				<form:input path="areaId" readonly="true" />
			</p>
			<p>
				<form:label for="settlement" path="settlement"><fmt:message key="contract.settlement" /></form:label>
				<br />
				<form:input path="settlement" readonly="true" />
			</p>
			<p>
				<form:label for="startDate" path="startDate"><fmt:message key="contract.startDate" /></form:label>
				<br />
				<form:input path="startDate" readonly="true" />
			</p>
			<p>
				<form:label for="endDate" path="endDate"><fmt:message key="contract.endDate" /></form:label>
				<br />
				<form:input path="endDate" readonly="true" />
			</p>
			<p>
				<form:label for="userName" path="userName"><fmt:message key="contract.userName" /></form:label>
				<br />
				<form:input path="userName" readonly="true" />
			</p>
			<p>
				<form:label for="userBirthDate" path="userBirthDate"><fmt:message key="contract.userBirthDate" /></form:label>
				<br />
				<form:input path="userBirthDate" readonly="true" />
			</p>
			<p>
				<form:label for="userAddressHouse" path="userAddressHouse"><fmt:message key="contract.userAddressHouse" /></form:label>
				<br />
				<form:input path="userAddressHouse" readonly="true" />
			</p>
			<p>
				<form:label for="userAddressStreet" path="userAddressStreet"><fmt:message key="contract.userAddressStreet" /></form:label>
				<br />
				<form:input path="userAddressStreet" readonly="true" />
			</p>
			<p>
				<form:label for="userAddressCity" path="userAddressCity"><fmt:message key="contract.userAddressCity" /></form:label>
				<br />
				<form:input path="userAddressCity" readonly="true" />
			</p>
			<p>
				<form:label for="userAddressCountry" path="userAddressCountry"><fmt:message key="contract.userAddressCountry" /></form:label>
				<br />
				<form:input path="userAddressCountry" readonly="true" />
			</p>
		</fieldset>
	</form:form>
		<a href="/contract"><fmt:message key="contract.list" /></a>
	</div>
</c:if>

<%@ include file="/WEB-INF/layout/footer.jsp"%>